<?php
declare (strict_types = 1);

namespace app\admin\controller;

use app\BaseController;
use think\Request;
use app\model\UsersIntegral ;
class Integral extends BaseController
{
    public function index()
    {

        return $this->success(UsersIntegral::order('id','asc')->paginate(10));
    }


    public function create()
    {
        return $this->success(UsersIntegral::create(request()->param()));
    }


    public function update($id)
    {

        return $this->success(UsersIntegral::where('id',$id)->update(request()->param()));
    }


    public function delete($id)
    {
        return $this->success(UsersIntegral::where('id',$id)->delete());
    }
}
